//
//  SPMusicFormatToken.h
//  Sophie
//
//  Created by Anton Chebotaev on 19/11/09.
//  Copyright 2009 IFMO. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@interface SPMusicFormatToken : NSObject <NSCoding> {
	NSString *content;
	NSTokenStyle style;
}

@property (readonly) NSString *content;
@property (readonly) NSTokenStyle style;

- (id)initWithString:(NSString *)string;
+ (id)tokenWithString:(NSString *)string;

+ (id)titleToken;
+ (id)albumToken;
+ (id)artistToken;
+ (id)genreToken;
+ (id)ratingToken;

- (BOOL)isTitleToken;
- (BOOL)isAlbumToken;
- (BOOL)isArtistToken;
- (BOOL)isGenreToken;
- (BOOL)isRatingToken;

- (NSString *)description;
- (NSUInteger)hash;
- (BOOL)isEqual:(id)object;

@end
